﻿namespace Sharp.Infrastructure.Interfaces
{
    /// <summary>
    /// 许可分类
    /// </summary>
    public struct PermissionCategory
    {
        /// <summary>
        /// 导航
        /// </summary>
        public const string Nav = "01";
        /// <summary>
        /// 数据列表
        /// </summary>
        public const string DataList = "02";

        /// <summary>
        /// 数据列表项
        /// </summary>
        public const string DataListItem = "03";
        /// <summary>
        /// 数据可见范围
        /// </summary>
        public const string DataScope = "04";
        /// <summary>
        /// 所有者权限范围
        /// </summary>
        public const string OwnerScope = "05";
        /// <summary>
        /// 同组权限范围
        /// </summary>
        public const string GroupScope = "06";
        /// <summary>
        /// 公开权限范围
        /// </summary>
        public const string PublicScope = "07";
        /// <summary>
        /// 列表操作
        /// </summary>
        public const string Operation = "08";
        /// <summary>
        /// 列表操作项
        /// </summary>
        public const string OperationItem = "09";
        /// <summary>
        /// 订阅项
        /// </summary>
        public const string Subscriber = "15";
        //    { n: '列表操作', v: "08" }
        //    { n: '列表操作项', v: "09" }
        //    { n: '报表', v: "10" }
        //    { n: '数据操作项', v: "11" }
        //    { n: '数据小节', v: "12" }
        //    { n: '表单字段', v: "13" }
        //    { n: '订阅', v: "14" }
        //    { n: '订阅项', v: "15" }
    }
}
